/* 测试用例管理界面样式 */
/* 参考主界面的现代化设计风格 - 完全独立，不依赖Bootstrap */

/* 基础重置和样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* 容器样式 */
.container {
    max-width: 1300px; /* 增加最大宽度，让问题表更宽 */
    margin: 0 auto;
    padding: 0 20px; /* 保持左右内边距 */
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

.col-md-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
    padding: 0 15px;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

/* 文本样式 */
.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.text-muted {
    color: #6c757d;
}

.text-primary {
    color: #6b9acc;
}

.text-light {
    color: #f8f9fa;
}

.text-dark {
    color: #212529;
}

/* 间距样式 */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-2 { margin-top: 0.5rem; }

.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }

.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }

/* 显示样式 */
.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.d-block {
    display: block;
}

.d-none {
    display: none;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.g-3 {
    gap: 1rem;
}

/* 位置样式 */
.position-fixed {
    position: fixed;
}

.position-relative {
    position: relative;
}

.position-sticky {
    position: sticky;
}

/* 边框样式 */
.border {
    border: 1px solid #dee2e6;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6;
}

.border-left {
    border-left: 1px solid #dee2e6;
}

.border-radius {
    border-radius: 0.375rem;
}

/* 背景样式 */
.bg-primary {
    background-color: #6ea5e1;
}

.bg-light {
    background-color: #f8f9fa;
}

.bg-dark {
    background-color: #212529;
}

.bg-white {
    background-color: white;
}

/* 阴影样式 */
.shadow {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* 导航栏样式 - 与主页面保持一致 */
.navbar-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand-modern {
    font-weight: 700;
    font-size: 1.5rem;
    color: #4f46e5 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand-modern:hover {
    color: #7c3aed !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.nav-link-modern {
    color: #6b7280 !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link-modern:hover {
    color: #4f46e5 !important;
    background-color: rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.nav-link-modern.active {
    color: #4f46e5 !important;
    background-color: rgba(79, 70, 229, 0.15);
    font-weight: 600;
}

.navbar-toggler {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    flex-basis: auto;
    flex-grow: 0;
    align-items: center;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    align-items: center;
    margin-left: auto;
}

.navbar-nav .nav-link-modern {
    padding-right: 0;
    padding-left: 0;
    margin-left: 0.5rem;
}

/* 确保导航栏内容在同一行 */
.navbar-modern .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand-modern {
    flex-shrink: 0;
}

/* CSS变量定义 */
:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 动画效果 - 与首页保持一致 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面头部样式 - 与首页hero区域保持一致 */
.teacher-header {
    background: var(--gradient-primary);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.teacher-header .container {
    position: relative;
    z-index: 1;
    max-width: 1300px; /* 与主要内容区域保持一致 */
    margin: 0 auto;
    padding: 0 20px;
}

.teacher-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.teacher-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.teacher-header .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* 统计卡片样式 - 参考主页面功能特性卡片 */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* 减少卡片间距 */
    margin-top: 1rem; /* 减少顶部间距 */
}

.stats-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem; /* 减少内边距 */
    text-align: center;
    min-width: 120px; /* 减少最小宽度 */
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stats-card h3 {
    font-size: 2rem; /* 减少字体大小 */
    font-weight: 700;
    margin-bottom: 0.3rem; /* 减少底部间距 */
    color: white;
}

.stats-card small {
    font-size: 0.9rem;
    opacity: 0.8;
    color: white;
}

/* 主要内容区域 */
.main-content {
    padding: 3rem 0;
    background: transparent;
}

/* 功能卡片样式 - 参考主页面核心功能特性 */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 恢复最小宽度 */
    gap: 2rem; /* 恢复间距 */
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card .icon {
    font-size: 3rem;
    color: #83a9d1;
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* 按钮样式 - 与主页面保持一致 */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    user-select: none;
}

.btn-primary {
    background: linear-gradient(45deg, #6f93ba, #5e91c7);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(45deg, #0056b3, #004085);
    color: white;
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(45deg, #1e7e34, #155724);
    color: white;
}

.btn-info {
    background: linear-gradient(45deg, #17a2b8, #138496);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
    background: linear-gradient(45deg, #138496, #0f6674);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #83a6cc;
    color: #719fd1;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #748eaa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    background: transparent;
}

.btn-outline-success:hover {
    background: #28a745;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-outline-warning {
    border: 2px solid #ffc107;
    color: #ffc107;
    background: transparent;
}

.btn-outline-warning:hover {
    background: #ffc107;
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

.btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    background: transparent;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* 表单样式 */
.form-select, .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background-color: #fff;
    background-clip: padding-box;
    display: block;
    width: 100%;
}

.form-select:focus, .form-control:focus {
    border-color: #8aacd0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
    color-adjust: exact;
}

.form-check-input:checked {
    background-color: #7aa1ca;
    border-color: #779fca;
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

/* 筛选区域样式 */
.filter-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-section h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* 测试用例列表样式 */
.test-case-library {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.test-case-library .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.test-case-library .card-header h5 {
    color: #333;
    font-weight: 600;
    margin: 0;
}

.test-case-item {
    border-left: 4px solid #91b2d5;
    transition: all 0.3s ease;
    border-radius: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #f8f9fa;
}

.test-case-item:hover {
    border-left-color: #92b3d6;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(5px);
}

.test-case-item:last-child {
    border-bottom: none;
}

.action-buttons {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.test-case-item:hover .action-buttons {
    opacity: 1;
}

/* 徽章样式 */
.badge {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.bg-primary {
    background-color: #7193b7 !important;
    color: white;
}

.bg-secondary {
    background-color: #6c757d !important;
    color: white;
}

.bg-info {
    background-color: #9bb5c0 !important;
    color: white;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px dashed #dee2e6;
    margin: 2rem 0;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #adb5bd;
}

.empty-state h5 {
    color: #495057;
    margin-bottom: 1rem;
}

.empty-state h6 {
    color: #495057;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.empty-state .small {
    font-size: 0.875em;
}

/* 侧边栏样式 */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

.sidebar-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.sidebar-card .card-header h5 {
    color: #333;
    font-weight: 600;
    margin: 0;
}

.sidebar-card .card-body {
    padding: 1.5rem;
}

/* 页脚样式 - 白色背景，一行显示 */
footer {
    background: white !important;
    border-top: 1px solid #e5e7eb;
    margin-top: 2rem;
    padding: 2rem 0;
    color: #6b7280;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}



footer p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

footer .footer-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

footer .footer-links {
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

footer .footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #4f46e5;
}

/* 加载动画 */
.loading-placeholder {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        max-width: 100%; /* 移动端使用全宽 */
        padding: 0 15px; /* 移动端减少内边距 */
    }
    
    .teacher-header {
        padding: 3rem 0; /* 移动端减少间距 */
    }
    
    .teacher-header h1 {
        font-size: 2.5rem; /* 移动端适中的字体大小 */
    }
    
    .teacher-header .lead {
        font-size: 1.1rem; /* 移动端适中的字体大小 */
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-section {
        padding: 1.5rem;
    }
    
    .test-case-library .card-header,
    .sidebar-card .card-header {
        padding: 1rem;
    }
    
    .sidebar-card .card-body {
        padding: 1rem;
    }
    
    .col-lg-8,
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
    
    /* 导航栏响应式 */
    .navbar-modern .container {
        flex-wrap: wrap;
    }
    
    .navbar-brand-modern {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link-modern {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }
    
    /* 页脚响应式 */
    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    footer .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    footer .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 表格标题头部样式 */
.table-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
}

.table-header i {
    color: #6b9acc;
}

/* 表格样式 - 采用智能分析界面风格 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 1rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-top: 2rem;
}

.table {
    width: 100%;
    margin-bottom: 0;
    background-color: transparent;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 20px 16px; /* 增加内边距 */
    vertical-align: middle;
    border-top: 1px solid #e2e8f0;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    background: transparent;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 24px 16px;
    background: #f8fafc;
    color: #374151;
    border-top: none;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8fafc;
}

.table-dark {
    color: #fff;
    background-color: #6a57bd;
}

.table-dark th,
.table-dark td,
.table-dark thead th {
    border-color: #8daac7;
}

.table-dark.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-dark.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

/* 分页样式 */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.375rem;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #0d6efd;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.page-link:hover {
    z-index: 2;
    color: #7598cd;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-link:focus {
    z-index: 3;
    color: #5884c7;
    background-color: #e9ecef;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.page-item:first-child .page-link {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination-sm .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.pagination-sm .page-item:first-child .page-link {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.pagination-sm .page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

/* 搜索和过滤控件样式 */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: nowrap; /* 防止换行 */
    align-items: stretch;
    width: 100%;
}

.input-group .form-control,
.input-group .form-select {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    height: 38px; /* 统一高度 */
}

.input-group .btn {
    height: 38px; /* 与输入框保持一致的高度 */
    white-space: nowrap; /* 防止文字换行 */
    min-width: auto; /* 允许按钮自适应宽度 */
}

/* 过滤按钮特殊样式 */
.input-group .btn-primary {
    min-width: 80px; /* 增加过滤按钮最小宽度 */
    padding: 0.375rem 1rem; /* 增加内边距 */
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
}

.form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 文本截断样式 */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 表格响应式设计 */
@media (max-width: 1200px) {
    .table th,
    .table td {
        padding: 10px 6px;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .table th,
    .table td {
        padding: 8px 4px;
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 0.15rem 0.3rem;
        font-size: 0.75rem;
    }
    
    /* 操作列按钮垂直排列 */
    .d-flex.flex-column.gap-1 {
        gap: 0.25rem !important;
    }
}

@media (max-width: 768px) {
    .table th,
    .table td {
        padding: 6px 3px;
        font-size: 0.8rem;
    }
    
    .table th {
        font-size: 0.7rem;
    }
    
    .btn-sm {
        padding: 0.1rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .row.g-3 > div {
        margin-bottom: 10px;
    }
    
    .input-group {
        flex-direction: row; /* 保持水平布局 */
        flex-wrap: nowrap; /* 防止换行 */
    }
    
    .input-group .form-control,
    .input-group .form-select {
        height: 36px; /* 移动端稍小的高度 */
        border-radius: 0.375rem 0.375rem 0 0;
    }
    
    .input-group .btn {
        height: 36px; /* 与输入框保持一致的高度 */
        border-radius: 0 0 0.375rem 0.375rem;
        white-space: nowrap; /* 防止文字换行 */
    }
    
    /* 移动端过滤按钮样式 */
    .input-group .btn-primary {
        min-width: 70px; /* 移动端稍小的最小宽度 */
        padding: 0.25rem 0.75rem; /* 移动端稍小的内边距 */
    }
    
    /* 移动端表格优化 */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    /* 操作按钮在移动端更紧凑 */
    .d-flex.flex-column.gap-1 .d-flex.gap-1 {
        gap: 0.1rem !important;
    }
}

@media (max-width: 576px) {
    .table th,
    .table td {
        padding: 4px 2px;
        font-size: 0.75rem;
    }
    
    .btn-sm {
        padding: 0.05rem 0.2rem;
        font-size: 0.65rem;
    }
    
    /* 超小屏幕隐藏部分列 */
    .table th:nth-child(3),
    .table td:nth-child(3) {
        display: none; /* 隐藏描述列 */
    }
    
    .table th:nth-child(6),
    .table td:nth-child(6) {
        display: none; /* 隐藏创建时间列 */
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%; /* 小屏幕使用全宽 */
        padding: 0 10px; /* 小屏幕进一步减少内边距 */
    }
    
    .teacher-header h1 {
        font-size: 1.4rem; /* 进一步减少小屏幕字体大小 */
    }
    
    .teacher-header .lead {
        font-size: 0.9rem; /* 减少小屏幕描述字体大小 */
    }
    
    .stats-card {
        min-width: 100px; /* 减少小屏幕卡片宽度 */
        padding: 0.8rem; /* 减少小屏幕内边距 */
    }
    
    .stats-card h3 {
        font-size: 1.8rem; /* 减少小屏幕数字字体大小 */
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}